sequence example problems